LassoScript Utility
Basics Browse Detail

[File->Size]

Tag Link [File->Size] Category File
Type Member Source Available No
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type Integer Security File
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

Returns size of the file in bytes.

Syntax

[File Variable->Size]

Parameters

No Parameters Required.

Examples

To return information about a file:

The [File->Name], [File->Path], and [File->Size] tags can be used to output the name, path, and size (in bytes) of a file. The example below outputs the file name, path, and size delimited by HTML line breaks.

[Var:'File'=(File: 'myfile.txt', File_OpenRead, File_ModeChar)]
[$File->Path]<br>
[$File->Name]<br>
[$File->Size]<br>
[$File->Close]